package com.hsy.crm.web.service.impl;

import com.hsy.crm.web.domain.cm.Unified;
import com.hsy.crm.web.domain.entity.Menu;
import com.hsy.crm.web.domain.po.menu.MenuPagePo;
import com.hsy.crm.web.domain.vo.menu.MenuPageVo;
import com.hsy.crm.web.mapper.MenuMapper;
import com.hsy.crm.web.service.base.BaseService;
import com.hsy.crm.web.domain.cm.Unified;
import com.hsy.crm.web.domain.po.menu.MenuPagePo;
import com.hsy.crm.web.domain.vo.menu.MenuPageVo;
import com.hsy.crm.web.mapper.MenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuService extends BaseService<Menu> {

    @Autowired
    MenuMapper menuMapper;

    public Unified<List<MenuPagePo>> find(MenuPageVo menu) {
        Unified<List<MenuPagePo>> unified = new Unified<>();
        unified.setData(menuMapper.find(menu));
        return unified;
    }

}
